package com.zhouqinuan.spring.cloud.develop.framework.demo.apollo.service;

import org.springframework.stereotype.Service;

import com.ctrip.framework.apollo.Config;
import com.ctrip.framework.apollo.spring.annotation.ApolloConfig;

/**
 * 统一在这里管理
 */
@Service
public class ApolloService {

    @ApolloConfig
    private Config apolloConfig;

    public Long getUserinfoUid() {
        return apolloConfig.getLongProperty("UserInfo.uid", 1L);
    }
}
